﻿namespace Refract.MVVM
{
    public class Model<TData> : Component
    {
        #region Fields

        private TData _data;

        #endregion Fields

        #region Constructors

        public Model()
        {
        }

        public Model(TData data)
        {
            _data = data;
        }

        #endregion Constructors

        #region Properties

        public TData Data
        {
            get { return _data; }
            set
            {
                _data = value;
                RaisePropertyChanged(new {Data});
            }
        }

        #endregion Properties
    }
}